import api from "./api_base";

//上传内存信息
export const uploadMemoryInfo = (data: any) => {
  return api.post("/memory/info", data);
};

//获取内存信息
export const getMemoryInfo = (page: number, limit: number, query: any) => {
  return api.get("/memory/info", {
    params: {
      page,
      limit,
      ...query,
    },
  });
};

//删除内存信息
export const deleteMemoryInfo = (id: string) => {
  return api.post(`/memory/info/delete/${id}`);
};

//修改内存信息
export const updateMemoryInfo = (id: string, data: any) => {
  return api.post(`/memory/info/${id}`, data);
};
